<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>更新用户信息</title>


<link rel="shortcut icon"
	href="<c:url value="/easyui/css/images/favicon.ico"/>" />
<link rel="stylesheet" href="<c:url value="/css/flipclock.css"/>">
<link href="<c:url value="/css/CalcSS3.css"/>" rel="stylesheet"
	type="text/css" />
<link href="<c:url value="/css/index.css"/>" rel="stylesheet"
	type="text/css" />
<link href="<c:url value="/easyui/css/easyui.css"/>" rel="stylesheet"
	type="text/css">
<link href="<c:url value="/easyui/css/easyui_animation.css"/>"
	rel="stylesheet" type="text/css">

<link href="<c:url value="/easyui/css/easyui_plus.css" />"
	rel="stylesheet" type="text/css">
<link href="<c:url value="/easyui/css/insdep_theme_default.css" />"
	rel="stylesheet" type="text/css">
<link href="<c:url value="/easyui/css/icon.css" />" rel="stylesheet"
	type="text/css">
<link
	href="<c:url value="/easyui/css/font-awesome-4.7.0/css/font-awesome.min.css" />"
	rel="stylesheet" type="text/css">
<!-- 引入 ECharts 文件 -->
<script type="text/javascript" src="<c:url value="/js/echarts.js"/>"></script>
<!--放入自定义的图表-->

<script type="text/javascript" src="<c:url value="/js/monitor.js"/>"></script>
<script type="text/javascript"
	src="<c:url value="/easyui/js/jquery.min.js"/>"></script>
<%--<script type="text/javascript" src="js/jquery.js"></script>--%>
<script type="text/javascript"
	src="<c:url value="/easyui/js/jquery.easyui.min.js"/>"></script>
<script type="text/javascript"
	src="<c:url value="/easyui/js/jquery.insdep-extend.min.js"/>">
	
</script>

</head>
<body>
	<script type="text/javascript">
		$(function() {
			$("#yk-update-userself-tj").linkbutton({
				onClick : function() {
					$("#userself-fm").form({
						onSubmit : function(params) {
							return $(this).form("validate");
						},
					    success:function(r){
				           r = eval("("+ r +")");
				           if(r.success){
				              $.messager.alert("提示", "修改成功");
				           }else{
				               $.messager.alert("提示", r.message);
				           }
				        } 
					}).submit();
				}
			});
		});
	</script>
	<form id="userself-fm" method="post" action="update-User-self"
		enctype="multipart/form-data">

		<div class="lineself">
			<input name="uname" class="easyui-textbox"
				data-options="required:true, label:'用户名：', width:450,readonly:true,value:'${userinfo.uname }'">
		</div>
		<div class="lineself">
			<input name="upassword" class="easyui-textbox"
				data-options="required:true, label:'密码：', width:450,value:'${userinfo.upassword }',
				validType:['length[6,20]']">
		</div>
		<div class="lineself">
			<input name="urealName" class="easyui-textbox"
				data-options="required:true, label:'真实姓名：', width:450,value:'${userinfo.urealName }'">
		</div>
		<div class="lineself">
			<input name="phone" class="easyui-textbox"
				data-options="required:true, label:'电话：', width:450,value:'${userinfo.phone }',
				validType:['phoneNum']">
		</div>
		<div class="lineself">
			<input name="userAddress" class="easyui-textbox"
				data-options="required:true, label:'用户地址：', width:450,value:'${userinfo.userAddress }'">
		</div>
	</form>
	
	    <div class="lineselfs">
			<a id="yk-update-userself-tj" class="easyui-linkbutton"
				data-options="width:100,text:'提交'"></a>
		</div>

</body>
</html>